package com.relatev.minecraft.TRAttribute;

import com.relatev.minecraft.TRAttribute.listener.TAListener;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public class TRAttribute extends JavaPlugin {

    public static TRAttribute mainPlugin;
    private TRAConfigManager ConfigManager;

    @Override
    public void onEnable() {
        mainPlugin = this;
        ConfigManager = new TRAConfigManager();
        AttributeManager.init();
        TAListener.init();
        TRASupportUtils.init();
        this.getLogger().info("作者提亚米|QQ1207223090");
    }

    @Override
    public void onDisable() {
        this.getLogger().info("作者提亚米|QQ1207223090");
    }
    
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args){
        return TRACommandManager.onCommand(sender, command, label, args);
    }
    
    public TRAConfigManager getConfigManager(){
        return ConfigManager;
    }
    
    public AttributeManager getAttributeManager(){
        return AttributeManager.Instance;
    }
}
